//
//  ZYXUserNetManager.h
//  ZYXApp
//
//  Created by 梁炜东 on 2017/4/24.
//  Copyright © 2017年 梁炜东. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZYXUser.h"

typedef void (^UserSuccessBlock) (NSDictionary *data, NSInteger status);
typedef void (^UserFailBlock) (NSError *error);

@interface ZYXUserNetManager : NSObject
+(ZYXUser *)user;
+(void)removeUser;
//注册 发送验证码
+(void)userRegisterAuthAccount:(NSString *)account Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//注册
+(void)userRegisterAccount:(NSString *)account Auth:(NSString *)auth Pw:(NSString *)password Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//登录
+(void)userLoginAccount:(NSString *)account Pw:(NSString *)password Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//修改密码-验证码
+(void)userModifSendAuthAccount:(NSString *)account Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//修改密码
+(void)userModifAccount:(NSString *)account Auth:(NSString *)auth Pw:(NSString *)password Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;

//修改密码--
+(void)userChangeNewPw:(NSString *)newPw OldPw:(NSString *)oldPw Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;

//修改用户信息--性别
+(void)userInfoUpdateSex:(NSString *)sex Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//修改用户信息--昵称
+(void)userInfoUpdateNickname:(NSString *)nickname Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//修改用户信息--个人介绍
+(void)userInfoUpdateIntroduce:(NSString *)introduce Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//修改用户信息--生日
+(void)userInfoUpdateBirthday:(NSString *)birthday Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//意见反馈
+(void)userFeedBack:(NSString *)title Content:(NSString *)content Success:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;

//获取用户信息
+(void)userGetUserInfoSuccess:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
//上传图像
+(void)uploadImage:(UIImage *)image block:(UserSuccessBlock)successBlock Fail:(UserFailBlock)failBlock;
@end
